from django.urls import re_path,path
from d4.views import DicGVS
from rest_framework import routers


router = routers.DefaultRouter()
router.register('dic', DicGVS, basename='dic')

urlpatterns = [
    # path('dic', dic_view.Dic),
    # re_path(r'^dic/$', dic_view.DicList),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})$', dic_view.DicDetail),
    # re_path(r'^dic/$', dic_view.DicList),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})$', dic_view.DicDetail),
    # re_path(r'^dic/$', DicList.as_view()),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})$', DicDetail.as_view()), 
    # re_path(r'^dic/$', DicGVS.as_view({"get": "list", "post": "create"})),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})$', DicGVS.as_view({"get": "retrieve", "put": "update", "delete": "destroy"})),
    # re_path(r'^dic/$', DicGVS.as_view({"get": "list"})),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})$', DicGVS.as_view({"get": "retrieve"})),
    # re_path(r'^dic/lastest$', DicGVS.as_view({"get": "lastest"})),
    # re_path(r'^dic/(?P<pk>[0-9a-zA-Z]{1,32})/read$', DicGVS.as_view({"put": "read"})),
    # path('dic/', DicView.as_view()),
    # path('dic/get',views.get),
    # path('dic/put',views.update),
    # path('dic/delete',views.remove),
    # path('dic/add',views.add),
    # path('dic/lists',views.lists),
]

urlpatterns += router.urls
